﻿using FluentNHibernate.Mapping;
using Shake.Domain.Models;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Shake.Domain.Maps
{
    public class PostInfoMap : ClassMap<PostInfo>
    {
        public PostInfoMap()
        {
            this.Table("PostInfo");
            this.Id(t => t.Id).Column("Id").Length(32).Not.Nullable();
            this.Map(t => t.PostName).Column("PostName");
            this.Map(t => t.Remark).Column("Remark");
            this.Map(t => t.CreateUser).Column("CreateUser");
            this.Map(t => t.CreateDate).Column("CreateDate");
            this.Map(t => t.UpdateUser).Column("UpdateUser");
            this.Map(t => t.UpdateDate).Column("UpdateDate");
        }        
    }
}
